import request from "@/utils/request";
import qs from "qs";

export function getBidList(data) {
  return request({
    url:
      process.env.VUE_APP_URL1 +
      "/projectmanage_service/projectManage/interface_bidmanagement_query.shtml",
    method: "post",
    data: qs.stringify(data)
  });
}

export function getProjectListByCusId(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 + "/admin/projectReport/getProjectListByCusId",
    method: "post",
    data: qs.stringify(data)
  });
}

export function addBid(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/bidManagement/interface_bidmanagement_save",
    method: "post",
    data:data
  });
}

export function updateBid(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/bidManagement/interface_bidmanagement_update",
    method: "post",
    data,
    headers:{
      'Content-Type':'application/json'
    }
  });
}

export function getLockModal(data) {
  return request({
    url:
      process.env.VUE_APP_URL2 +
      "/admin/bidManagement/interface_lockmodel_query",
    method: "post",
    data: qs.stringify(data)
  });
}
